import { createApp } from 'vue'
// import { createPinia } from 'pinia'
// import persist from 'pinia-plugin-persistedstate'


import App from './App.vue'
import router from './router'
import 'vant/lib/index.css'
import './styles/main.scss'
import pinia from './stores'

import 'virtual:svg-icons-register'

const app = createApp(App)


//使用pinia插件，并且在pinia插件里面使用持久化插件
// app.use(createPinia().use(persist))
app.use(router)
app.use(pinia)

app.mount('#app')
